﻿Imports System.ComponentModel.DataAnnotations
Imports SistemaINCA.Models.Validators

Namespace Models.ViewModels

    Public Class GradoModel
        Public Property ID As Integer

        <Required(ErrorMessageResourceName:="Error_Field_Required", ErrorMessageResourceType:=GetType(My.Resources.ErrorMessageResources))> _
        Public Property AnioEscolar As String

        <Required(ErrorMessageResourceName:="Error_Field_Required", ErrorMessageResourceType:=GetType(My.Resources.ErrorMessageResources))> _
        Public Property Grado As Integer

        <Required(ErrorMessageResourceName:="Error_Field_Required", ErrorMessageResourceType:=GetType(My.Resources.ErrorMessageResources))> _
        Public Property Especialidad As String

        <Required(ErrorMessageResourceName:="Error_Field_Required", ErrorMessageResourceType:=GetType(My.Resources.ErrorMessageResources))> _
        <RegularExpression("^[a-zA-Z]+$", ErrorMessageResourceName:="Error_OnlyLetras", ErrorMessageResourceType:=GetType(My.Resources.ErrorMessageResources))> _
        Public Property Seccion As String

        Public Property Cantidad As Integer
    End Class
End Namespace